﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using Entity;
using System.Data;

namespace BUS
{
    public class QuanLySanPhamBUS
    {
        public static DataTable LayThongTinSanPham()
        {
            return QuanLySanPhamDAO.LayThongTinSanPham();
        }
        public static void XoaSanPham(String masp)
        {
            QuanLySanPhamDAO.XoaSanPham(masp);
        }
        public static DataTable LaySanPham(String masp)
        {
            return QuanLySanPhamDAO.LaySanPham(masp);
        }
        public static DataTable LayTenLoaiSP()
        {
            return QuanLySanPhamDAO.LayTenLoaiSP();
        }
        public static String LayMaLoaiSP(String tenloaisp)
        {
            return QuanLySanPhamDAO.LayMaLoaiSP(tenloaisp);
        }
        public static void CapNhatSanPham(SanPham sp, String masp)
        {
            QuanLySanPhamDAO.CapNhatSanPham(sp,masp);
        }
        public static void ThemSP(SanPham sp)
        {
            QuanLySanPhamDAO.ThemSP(sp);
        }
    }
}
